	<div class="detailsBox">
		<div class="openBox">
			<h3><i class="jtIco"></i>合作方信息</h3>
	        <div class="detaiTab">
	            <table width="100%" border="0" cellspacing="0" cellpadding="0">
	            	<tbody>
	                	<tr>
	                    	<td align="right" class="bg" width="15%">渠道名称<span style="color: red;">*</span></td>
	                      	<td width="35%">
		                      	<#if type=="detail" || approvalStatus=='UNDO'>
									${vo.partnerName}
								<#else>
									*********
								<@permission permissionName="UpdateInternalInfo">
									<a class="action-ajax-btn fr edit btn_blue" href="/rbrand/workflow_model_view?parameter=${vo.id}">查看</a>
								</@permission>
								</#if>
	                      	</td>
                            <td align="right" class="bg" width="15%">渠道共享<span style="color: red;">*</span></td>
                            <td><#if vo.isShare=0>
                                否
								<#elseif vo.isShare=1>
                                是
							</#if>
							</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">申报省份<span style="color: red;">*</span></td>
	                      	<td width="35%">${vo.orgProvince}</td>
	                        <td align="right" class="bg" width="15%">经办人<span style="color: red;">*</span></td>
	                        <td>${vo.operator}</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">主要负责人<span style="color: red;">*</span></td>
	                      	<td width="35%">${vo.parPersonLiable}</td>
	                     	<td align="right" class="bg" width="15%">成立时间<span style="color: red;">*</span></td>
	                        <td>${vo.parCreateTime}</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">销售区域<span style="color: red;">*</span></td>
	                      	<td width="35%">${vo.saleAddress}</td>
	                        <td align="right" class="bg" width="15%">经营范围<span style="color: red;">*</span></td>
	                        <td>${vo.scopeOfBusiness}</td>
	                    </tr>
	                    <tr>
	                    <td align="right" class="bg" width="15%">销售账期</td>
	                      	<td width="35%">${vo.salesAcTerm}月</td>
	                        <td align="right" class="bg" width="15%">联系电话<span style="color: red;">*</span></td>
	                        <td>
	                        	<#if type=="detail" || approvalStatus=='UNDO'>
									${vo.parMobile}
								<#else>
									*********
								<@permission permissionName="UpdateInternalInfo">
									<a class="action-ajax-btn fr edit btn_blue" href="/rbrand/workflow_model_view?parameter=${vo.id}">查看</a>
								</@permission>
								</#if>
	                        </td>
	                    </tr>
	                    <tr>
							<td align="right" class="bg" width="15%">结算方式<span style="color: red;">*</span></td>
	                        <td>
	                        	<@select type="radio" dataSouceType="parCleareForm" class="only" name="cleareForm" value="${vo.cleareForm}"  renderonly="true"/>
	                        	&nbsp;&nbsp;${vo.cleareFormDes}
	                        </td>
	                        <td align="right" class="bg" width="15%">销售模式</td>
	                        <td>
	                        	<@select type="radio" value="${vo.salesModel}" class="only" name="salesModel" dataSouceType="parSalesModel"  renderonly="true"/>
	                        	&nbsp;&nbsp;${vo.salesModelDes}</td>
	                    </tr>	                    
	                    <tr>
	                 	   <td align="right" class="bg" width="15%">与EA是否有合作</td>
	                      	<td width="35%"><@select type="radio" dataSouceType="YW" class="only" name="isPartnership" value="${vo.isPartnership}" renderonly="true"/></td>
	                  	  <td align="right" class="bg" width="15%">销售结构<span style="color: red;">*</span></td>
	                      	<td width="35%">
	                      		一级批发商${vo.salesPatternOne}家,
	                    		二级批发商${vo.salesPatternTwo}家,
	                    		销售终端${vo.salesPatternTerminal}家
	                    	</td>
	                    </tr>	 
	                    <tr>
	                    	<td align="right" class="bg" width="15%">办公地址<span style="color: red;">*</span></td>
	                    	<td colspan="3">
	                    		<#if type=="detail" || approvalStatus=='UNDO'>
									<select id="select_provinceId" name="parOfficeProvince" value="${vo.parOfficeProvince}" disabled="true" onchange="provinceOnchange()"></select>&nbsp;&nbsp; 
		      						<select id="select_areaId" name="parOfficeArea" value="${vo.parOfficeArea}" disabled="true" onchange="areaOnchange()" ></select>&nbsp;&nbsp; 
		      						<select id="select_cityId" name="parOfficeCity" value="${vo.parOfficeCity}" disabled="true"></select> 
		    						<span id = "pbgdz"> 
	    							${vo.parOfficeDetail}
	    							</span>
	    							<a href="javascript:void(0);" target="_blank" onclick="pbgdzmap(this)">地图中查看</a>
								<#else>
									*********
								<@permission permissionName="UpdateInternalInfo">
									<a class="action-ajax-btn fr edit btn_blue" href="/rbrand/workflow_model_view?parameter=${vo.id}">查看</a>
								</@permission>
								</#if>
	                    		
	                    	</td>
	                    </tr>	                          
	                    <tr><td align="left" class="bg" width="15%" colspan="4" >&nbsp;</td></tr> 
	                    <tr>
	                    	<td align="right" class="bg" width="15%">年销售收入<span style="color: red;">*</span></td>
	                    	<td>${vo.salesIncomeYear}万元</td>
	             			<td align="right" class="bg" width="15%">年销售毛利率<span style="color: red;">*</span></td>
	                    	<td>${vo.salesIncomeAll}%</td>
	                    </tr>       	                         

	                    <tr>
	                    	<td align="right" class="bg" width="15%">市场占有率排名</td>
	                    	<td>${vo.marketOrder}名</td>
	             			<td align="right" class="bg" width="15%">与厂家年销!售收入的比重</td>
	                    	<td>${vo.salesProportion}%</td>
	                    </tr>       	                    
	                    <tr>
	                    	<td align="right" class="bg" width="15%">厂家系统内销售排名</td>
	                    	<td colspan="3">${vo.salesOrder}名
	                    	</td>
	                    </tr> 
	                    <tr><td align="left" class="bg" width="15%" colspan="4" >&nbsp;</td></tr> 
	                    <tr>
	                    	<td align="right" class="bg" width="15%">贷款对象<span style="color: red;">*</span></td>
	                    	<td colspan="3">
	                    		<@select type="radio" value="${vo.loanObject}" class="only" name="loanObject" dataSouceType="parLoanObject" renderonly="true"/>
	                    		&nbsp;&nbsp;${vo.loanObjectDes}
	                    	</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">是否签署回购协议<span style="color: red;">*</span></td>
	                    	<td colspqn="3">
	                    		<@select type="radio" dataSouceType="YW" class="tabInp" name="isSignAgreement" value="${vo.isSignAgreement}" renderonly="true"/>
	                      		&nbsp;&nbsp;${vo.signAgreementDes}
	                    	</td>
	                    </tr> 	   
	                    <tr><td align="left" class="bg" width="15%" colspan="4" style="background: #e2e2e2;font-weight: bold;padding-left: 20px;color: #333;font-size: 14px";>准入条件</td></tr>                
	                    <tr>
	                    	<td align="right" class="bg" width="15%">该品牌厂家、销售分公司或办事处是否允许怡亚通信贷经理进入其销售管理系统采集相关数据<span style="color: red;">*</span></td>
	                    	<td><@select type="radio" value="${vo.isPurchaseData}" class="only" name="isPurchaseData" dataSouceType="YW" renderonly="true"/></td>
	             			<td align="right" class="bg" width="15%">该品牌厂家、销售分公司或办事处是否愿意安排业务经理配合怡亚通信贷经理参与借款客户的调查<span style="color: red;">*</span></td>
	                    	<td><@select type="radio" value="${vo.isLoanInterview}" class="only" name="isLoanInterview" dataSouceType="YW" renderonly="true"/></td>
	                    </tr>    	                    
	                    <tr>
	                    	<td align="right" class="bg" width="15%">该品牌厂家、销售分公司或办事处可提供给怡亚通证实客户真实交易的凭证<span style="color: red;">*</span></td>
	                    	<td colspan="3">
								<@select type="checkbox" value="${vo.tradeVoucher}" name="tradeVoucher" dataSouceType="parTradeVoucher" renderonly="true"/>
								<input type="text" name="tradeVoucherDes" value="${vo.tradeVoucherDes}" disabled= "true ">
							</td>
	                    </tr> 	                    
	                    <tr>
	                    	<td align="right" class="bg" width="15%">融资额度</td>
	                    	<td>${vo.financeMoney}万元</td>
	             			<td align="right" class="bg" width="15%">担保方式<span style="color: red;">*</span></td>
	                    	<td>
								<@select type="radio" value="${vo.guaranteeWay}" name="guaranteeWay" dataSouceType="YW" renderonly="true"/>
								&nbsp;&nbsp;${vo.guaranteeDes}
							</td>
	                    </tr>   	  
	                    <tr>
	                    	<td align="right" class="bg" width="15%">其他说明</td>
	                    	<td colspan="3">${vo.otherDes}</td>
	                    </tr>   
	               	</tbody>
	        	</table>
	        </div>
        </div>
	</div>
	<div class="detailsBox">
		<div class="openBox">
		    <h3><i class="jtIco"></i>附件信息</h3>
	        <div class="detaiTab detaiTab1 m10">
			        <p class="p10">合作方申请报告</p>
			       <div class="dataBable"><@pagination paginationInfo="pageResult"/></div>
			</div>
				  <div class="detaiTab detaiTab1 m10">
			        <p class="p10">上门营销照片</p>
			       <div class="dataBable"><@pagination paginationInfo="pageResultPicture"/></div>
		  	 </div>
				  <div class="detaiTab detaiTab1 m10">
			        <p class="p10">厂家证明文件</p>
			       <div class="dataBable"><@pagination paginationInfo="pageResultEvidence"/></div>
		     </div>			
			</div>
	</div>
<script>
	function pbgdzmap(obj){
		var location0 = $("#select_provinceId").find("option:selected").text() + $("#select_areaId").find("option:selected").text() 
			+ $("#select_cityId").find("option:selected").text() + $("#pbgdz").html();
		location0 = location0.replace(/[\r\n &nbsp;]/g,'');
		obj.href='http://api.map.baidu.com/geocoder?address='+location0+'&output=html&src=';
	}

	//省市区三级联动
	provinceLoad();
	function provinceLoad(){
		var provinceCode = $("#select_provinceId").attr('value');
		$.ajax({
			type: "GET",
			url:"${crmUrl}/common/findProvinces",
			dataType:"jsonp",
			jsonp:"_callback",
			success:function(result){
					$("#select_provinceId").empty();
					 $("#select_provinceId").append("<option value=''>请选择</option>"); 
					 $("#select_areaId").empty();
					 $("#select_areaId").append("<option value=''>请选择</option>"); 
					 $("#select_cityId").empty();
					 $("#select_cityId").append("<option value=''>请选择</option>");   
					 $.each(result.data,function(key,value){
					 	if(provinceCode == value[0])
						    $("#select_provinceId").append("<option value='"+value[0]+"' selected='selected'>"+value[1]+"</option>");   
						else
							$("#select_provinceId").append("<option value='"+value[0]+"'>"+value[1]+"</option>");     
					 });
					 provinceOnchange(function(){
					 	 areaOnchange();
					 });
				    
		 		}
	 	});
     };
	
	
	function provinceOnchange(callback){
		var provinceCode = $("#select_provinceId").val() || $("#select_provinceId").attr('value');
		var areaCode = $("#select_areaId").val() || $("#select_areaId").attr('value');
		if(!provinceCode){
			 $("#select_areaId").empty();
			 $("#select_areaId").append("<option value=''>请选择</option>"); 
			 $("#select_cityId").empty();
			 $("#select_cityId").append("<option value=''>请选择</option>");   			
			 return true;
		}
		$.ajax({
			type: "GET",
			url:"${crmUrl}/common/findCityByProvinceCode",
			data:{provinceCode:provinceCode},
			dataType:"jsonp",
			jsonp:"_callback",
			success:function(result){
					 $("#select_areaId").empty();
					 $("#select_areaId").append("<option value=''>请选择</option>"); 
					 $("#select_cityId").empty();
					 $("#select_cityId").append("<option value=''>请选择</option>");   
					 $.each(result.data,function(key,value){
					 	if(areaCode == value[0])
						    $("#select_areaId").append("<option value='"+value[0]+"' selected='selected'>"+value[1]+"</option>");   
						else
					 		$("#select_areaId").append("<option value='"+value[0]+"'>"+value[1]+"</option>");   
						 
					 });
					 callback &&　callback();
		 		}
	 	});
     }
	      
	 function areaOnchange(){
		var areaCode = $("#select_areaId").val() || $("#select_areaId").attr('value');
		var cityCode = $("#select_cityId").val() || $("#select_cityId").attr('value');
		if(!areaCode){
			$("#select_cityId").empty();
		    $("#select_cityId").append("<option value=''>请选择</option>");   
			return true;
		}
		$.ajax({
			type: "GET",
			url:"${crmUrl}/common/findDistrictByCityCode",
			data:{cityCode:areaCode},
			dataType:"jsonp",
			jsonp:"_callback",
			success:function(result){
				 $("#select_cityId").empty();
				 $("#select_cityId").append("<option value=''>请选择</option>");   
				 $.each(result.data,function(key,value){
				 	if(cityCode == value[0])
					    $("#select_cityId").append("<option value='"+value[0]+"' selected='selected'>"+value[1]+"</option>");   
					else
						$("#select_cityId").append("<option value='"+value[0]+"'>"+value[1]+"</option>");   
				 });
			 }
	 	});
	
			
	}
</script>